package kr.hkit.powerjava.chapter07;

class InDay{
	int year;
	int month;
	int day;
	
	void print1(int year, int month, int day){
		this.year = year;
		this.month = month;
		this.day = day;
		System.out.println(this.year + "." + this.month + "." + this.day);
	}
	
	void print2(int year, int month, int day){
		String iMonth = null;
		this.year = year;
		this.month = month;
		this.day = day;
		switch (month) {
		case 1:	iMonth = "january"; break;		case 2:	iMonth = "february"; break;	
		case 3:	iMonth = "march"; break;		case 4: iMonth = "april"; break;
		case 5:	iMonth = "may";	break;			case 6:	iMonth = "jun";	break;
		case 7:	iMonth = "july"; break;			case 8: iMonth = "august"; break;
		case 9:	iMonth = "september"; break;	case 10: iMonth = "october"; break;	
		case 11: iMonth = "november"; break;	case 12: iMonth = "december"; break;
		}
		System.out.println(iMonth + " " + day + ", " + year);
	}
}



public class OutDay {
	public static void main(String[] args) {
		InDay d = new InDay();
		d.print1(2014, 9, 17);
		d.print2(2014, 9, 17);
	}
}
